<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/mains/orders/expressUp}">
        <input type="hidden" name="orderId" th:value="${address.orderId}">
        <div class="layui-form-item">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" readonly="readonly" th:value="${address.orderCodes}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" readonly="readonly" th:value="${address.nickName}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">邮寄地址</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" readonly="readonly" th:value="${address.address}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">联系电话</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" readonly="readonly" th:value="${address.mobile}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">物流公司</label>
            <div class="layui-input-inline">
                <th:block th:if="${address.expressCompany != null }">
                    <input class="layui-input" type="text" name="expressCompany" th:value="${address.expressCompany}">
                </th:block>
                <th:block th:if="${address.expressCompany == null }">
                    <input class="layui-input" type="text" name="expressCompany" placeholder="请输入物流公司">
                </th:block>
            </div>
        </div>
        <th:block th:if="${address.expressCompany == null ||address.expressCompany=='顺丰速运' }">
        <div class="layui-form-item">
            <label class="layui-form-label required">物流单号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="expressCode" placeholder="请输入物流单号">
            </div>
        </div>
        </th:block>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
<script type="text/javascript" th:src="@{/js/plugins/jquery-3.3.1.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.core.min.js}"></script>
<script type="text/javascript">
    // 树形菜单

</script>
</body>
</html>